package com.devin.model.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author: simpl
 * @date: 2020/3/13
 * @time: 20:39
 * @description: 
 */

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Entity
@Table(name = "room")
public class Room implements Serializable {

    private static final long serialVersionUID = -5144055068797033748L;

    /*
    * 本身的id
    * */

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /*
    *   房间的名字
    * */
    private String roomname;


    //电影的名字
    private String videoname;


    //电影的id
    private Long movieId;

    //房间创建的时间
    private Date createTime;
    /*
    *   房主的用户名
    * */
    private String hostname;

    private String face;

    private int currentPeople;


    private String kind;

}
